<template>
  <header>
    <div class="header-container">
      <a class="brand" href="/">
        食品安全风险预警与推荐
      </a>
      <ul class="menu-list">
        <li @click="$router.push({ name: 'notice' })" class="menu-item">抽样公告</li>
        <li @click="$router.push({ name: 'news' })" class="menu-item">食品舆论</li>
      </ul>
    </div>
  </header>
</template>

<script>
export default {
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
ul {
  list-style: none;
}

header {
  height: 75px;
  background-color: #282828;
}

.header-container {
  display: flex;
  padding: 0 50px;
  a.brand {
    text-decoration: none;
    cursor: pointer;
    color: #ffe300;
    font-size: 30px;
    font-weight: bold;
    line-height: 75px;
  }
}

.menu-list {
  display: flex;
  margin-left: 40px;
}

.menu-item {
  line-height: 75px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 0 20px;
  cursor: pointer;
  &:hover {
    color: #ffe300
  }
}
</style>
